package com.zgcs.sequence.net.in;

public class RoomCommentPackage extends InPackage {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7883960686670075219L;

	public static final int ROOM_COMMENT_LAUGH = 1;
	public static final int ROOM_COMMENT_COMEON = 2;
	public static final int ROOM_COMMENT_GREAT = 3;
	public static final int ROOM_COMMENT_QUICK = 4;

	int roomID;
	int userID;
	String userNic;
	int toUserID;
	String toUserNic;
	int commentStyle;

	public RoomCommentPackage(String result) {
		super(result);
	}

	@Override
	public void parserSelf() {

		roomID = Integer.parseInt(resultSpl[2]);
		userID = Integer.parseInt(resultSpl[3]);
		userNic = resultSpl[4];
		toUserID = Integer.parseInt(resultSpl[5]);
		toUserNic = resultSpl[6];
		commentStyle = Integer.parseInt(resultSpl[7]);

	}

	public int getRoomID() {
		return roomID;
	}

	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public int getToUserID() {
		return toUserID;
	}

	public void setToUserID(int toUserID) {
		this.toUserID = toUserID;
	}

	public int getCommentStyle() {
		return commentStyle;
	}

	public void setCommentStyle(int commentStyle) {
		this.commentStyle = commentStyle;
	}

	public String getUserNic() {
		return userNic;
	}

	public void setUserNic(String userNic) {
		this.userNic = userNic;
	}

	public String getToUserNic() {
		return toUserNic;
	}

	public void setToUserNic(String toUserNic) {
		this.toUserNic = toUserNic;
	}

}
